package com.aynu.bookstore.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.aynu.bookstore.beans.Dow;
import com.aynu.bookstore.beans.Item;
import com.aynu.bookstore.beans.Notice;
import com.aynu.bookstore.beans.Order;
import com.aynu.bookstore.beans.Products;

public interface IAdminDao {

	List<Products> selectAllProducts(Map map);

	void insertProducts(Products products);

	Products selectProductById(@Param("id") String id);

	void updateProduct(Products products);

	void deleteProductById(@Param("id") String id);

	List<Dow> selectProductByTime(@Param("time") String time);

	List<Order> selectAllOrders(Order order);

	List<Item> selectOrderMessage(@Param("id") String id);

	void deleteOrder(@Param("id") String id);

	void deleteOrderItem(@Param("id") String id);

	List<Notice> selectAllNotice();

	void insertNotice(Notice notice);

	Notice selectNoticeById(@Param("id") Integer id);

	void updateNotice(Notice notice);

	void deleteNotice(Integer id);

}
